final class BufferingClientHttpRequestWrapper extends AbstractBufferingClientHttpRequest
ClientHttpRequest
that wraps another request.Modifier and Type | Field and Description |
---|---|
private ClientHttpRequest |
request |
Constructor and Description |
---|
BufferingClientHttpRequestWrapper(ClientHttpRequest request) |
Modifier and Type | Method and Description |
---|---|
protected ClientHttpResponse |
executeInternal(HttpHeaders headers,
byte[] bufferedOutput)
Abstract template method that writes the given headers and content to the HTTP request.
|
HttpMethod |
getMethod()
Return the HTTP method of the request.
|
java.lang.String |
getMethodValue()
Return the HTTP method of the request as a String value.
|
java.net.URI |
getURI()
Return the URI of the request (including a query string if any,
but only if it is well-formed for a URI representation).
|
executeInternal, getBodyInternal
assertNotExecuted, execute, getBody, getHeaders
private final ClientHttpRequest request
BufferingClientHttpRequestWrapper(ClientHttpRequest request)
@Nullable public HttpMethod getMethod()
HttpRequest
null
if not resolvable (e.g. in case of a non-standard HTTP method)HttpRequest.getMethodValue()
,
HttpMethod.resolve(String)
public java.lang.String getMethodValue()
HttpRequest
HttpRequest.getMethod()
public java.net.URI getURI()
HttpRequest
null
)protected ClientHttpResponse executeInternal(HttpHeaders headers, byte[] bufferedOutput) throws java.io.IOException
AbstractBufferingClientHttpRequest
executeInternal
in class AbstractBufferingClientHttpRequest
headers
- the HTTP headersbufferedOutput
- the body contentjava.io.IOException